<template>
  <div class="container-fluid body">
    <div style="width: 1000px;margin: 0 auto; padding-top: 6%;">
      <Row :gutter=12>
        <Col span='16'>
          <Card class="box pad-15 bg-aqua" to="http://10.216.88.149:8083/view/networkoverview" target="_blank">
                <div class="bai-z"></div>
                <div class="bai-y"></div>
                <div class="pull-left">
                  <img class="box-icon-1" src="@/assets/skin/lte/img/index/gailan.svg" alt="全网概览">
                </div>
                <div class="text-align pos-right-bot" title="该数据为全网昨日数据" style="width: 36%;margin-bottom: 3%;">
                  <div class="zhibiao">全网概览</div>
                  <List size="small" :split="false" style="float: left;left: -50%;color: white;">
                    <ListItem>基站数：<span id="baseSiteNums" v-text="baseSiteNums"></span></ListItem>
                    <ListItem>小区数：<span id="cellNums" v-text="cellNums"></span></ListItem>
                    <ListItem>总流量(TB)：<span id="upocts" v-text="upocts"></span></ListItem>
                  </List>
                  <List size="small" :split="false" style="right: 41%;color: white;white-space: nowrap;">
                    <ListItem>LTE高负荷小区数：<span id="high_load_num" v-text="high_load_num"></span></ListItem>
                    <ListItem>LTE无线利用率(%)：<span id="radio_use_rate" v-text="radio_use_rate"></span></ListItem>
                    <ListItem>VOLTE话务量(万Erl)：<span id="volte_voice_traffic" v-text="volte_voice_traffic"></span></ListItem>
                  </List>
                </div>
          </Card>
        </Col>
        <Col span='8'>
          <Card class="box pad-15 bg-yellow" to="http://10.216.88.149:8083/view/maintenance2" target="_blank">
            <div class="bai-z"></div>
            <div class="bai-y"></div>
            <div class="pull-left">
              <img class="box-icon" src="@/assets/skin/lte/img/index/weihu.svg" alt="集中维护">
            </div>
            <div class="text-align pos-right-bot" title="该数据为全网昨日数据" style="margin-bottom: 6%;">
              <div class="zhibiao">集中维护</div>
              <List size="small" :split="false" style="float: left;left: -7%;color: white;">
                <ListItem>TDD小区完好度(%)：<span id="integrity_cell_tdd" v-text="integrity_cell_tdd"></span></ListItem>
                <ListItem>TDD无线设备在网率(%)：<span id="ratio_online_tdd" v-text="ratio_online_tdd"></span></ListItem>
                <ListItem>4G室分流量承载比(%)：<span id="inandoutdoor_cell_traffic_ratio" v-text="inandoutdoor_cell_traffic_ratio"></span></ListItem>
              </List>
            </div>
          </Card>
        </Col>
      </Row>
      <Row :gutter=12>
        <Col span='8'>
          <Card class="box pad-15 bg-green">
            <div class="bai-z"></div>
            <div class="bai-y"></div>
            <div class="pull-left">
              <img class="box-icon" src="@/assets/skin/lte/img/index/guihua_1.svg" alt="集中规划">
            </div>
            <div class="text-align pos-right-bot" title="模块开发中" style="width: 40%;margin-bottom: 3%;">
              <div class="zhibiao">集中规划</div>
            </div>
          </Card>
        </Col>
        <Col span='8'>
          <Card class="box pad-15 bg-red" to="http://10.216.88.149:8083/view/complain" target="_blank">
            <div class="bai-z"></div>
            <div class="bai-y"></div>
            <div class="pull-left">
              <img class="box-icon" src="@/assets/skin/lte/img/index/tousu.svg" alt="集中投诉">
            </div>
            <div class="text-align pos-right-bot" title="该数据为全网昨日数据" style="margin-bottom: 6%;">
              <div class="zhibiao">集中投诉</div>
              <List size="small" :split="false" style="float: left;left: -7%;color: white;">
                <ListItem>昨日投诉数量：<span id="complain_num" v-text="complain_num"></span></ListItem>
                <ListItem>昨日已派发量：<span id="distribute_num_sum" v-text="distribute_num_sum"></span></ListItem>
                <ListItem>基础通信重复投诉率(%)：<span id="complain_repeat_rate" v-text="complain_repeat_rate"></span></ListItem>
              </List>
            </div>
          </Card>
        </Col>
        <Col span='8'>
          <Card class="box pad-15 bg-navy" to="http://10.216.88.149:8083/view/optimization3" target="_blank">
            <div class="bai-z"></div>
            <div class="bai-y"></div>
            <div class="pull-left">
              <img class="box-icon" src="@/assets/skin/lte/img/index/fenxi_1.svg" alt="集中优化分析">
            </div>
            <div class="text-align pos-right-bot" title="该数据为全网昨日数据" style="margin-bottom: 6%;">
              <div class="zhibiao" style="white-space: nowrap;">集中优化分析</div>
              <List size="small" :split="false" style="float: left;left: -7%;color: white;">
                <ListItem>4G高负荷小区占比(%)：<span id="high_load_ratio_lte" v-text="high_load_ratio_lte"></span></ListItem>
                <ListItem>4G高干扰小区占比(%)：<span id="high_interfer_cell_ratio_tdd" v-text="high_interfer_cell_ratio_tdd"></span></ListItem>
                <ListItem>MR覆盖率(%)：<span id="mr_coverage_rate" v-text="mr_coverage_rate"></span></ListItem>
              </List>
            </div>
          </Card>
        </Col>
      </Row>
    </div>
  </div>
</template>

<script>
// import viewIndex from '/static/js/index'
import viewIndex from '@/assets/js/index.js'
export default viewIndex
</script>

<style scoped>
  .ivu-list-small .ivu-list-item {
    padding: 0;
  }
  .body{
    background-image: url('../../assets/skin/lte/img/bg.png');
    background-position: 50% 120%;
    background-repeat: no-repeat;
    background-size:contain;
    height: 100%;
    width: 100%;
    position: fixed;
  }
  ::-webkit-scrollbar {
    width: 10px; /*高宽分别对应横竖滚动条的尺寸*/
    height: 10px;
  }

  ::-webkit-scrollbar-thumb { /*滚动条里面小方块*/
    border-radius: 5px;
    -webkit-box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
    background: #ccc;
  }

  ::-webkit-scrollbar-track { /*滚动条里面轨道*/
    -webkit-box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
    border-radius: 5px;
    background: #f5f5f5;
    margin: 5px;
  }

  .groupSwitchBox {
    position: relative;
  }

  .groupSwitchBox .groupSwitch {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 1;
  }

  .table > tbody > tr > td, .table > tbody > tr > th, .table > tfoot > tr > td, .table > tfoot > tr > th, .table > thead > tr > td, .table > thead > tr > th {
    padding: 5px;
  }

  .box-icon .fa {
    font-size: 32px;
  }

  .zhibiao {
    font-size: 30px;
    font-weight: bold;
    margin-right: 7%;
    color: white;
  }

  .biaoti {
    color: #999;
    font-size: 12px;
  }
  .content {
    margin: 0px 15px 0 15px;
    padding-top: 80px;
  }

  .box {
    /*border: 1px #ddd solid;*/
    border: none;
    border-radius: 4px;
    box-shadow: 0 0 28px rgba(0, 0, 0, .1);
    margin-bottom: 10px;
    overflow: hidden;
    height: 220px;
    position: relative;
  }
  .pos-right-bot{
    position: absolute;
    right: 0%;
    bottom: 0%;
  }
  .pad-15 {
    padding: 15px;
  }

  .pad-r {
    padding-right: 5px;
  }

  .pad-c {
    padding: 0 5px;
  }

  .pad-l {
    padding-left: 5px;
  }

  .text-white {
    color: #fff !important;
  }

  .box-icon-1 {
    /*border-radius: 50%;*/
    width: 190px;
    height: 190px;
    display: table-cell;
    vertical-align: middle;
    text-align: center;
    position: relative;
  }
  .box-icon{
    /*border-radius: 50%;*/
    width: 100px;
    height: 100px;
    display: table-cell;
    vertical-align: middle;
    text-align: center;
    position: relative;
  }
  .bg-aqua {
    background-color: #5eb5ef!important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .2);
  }

  .bg-green {
    background-color: #6fcdcd!important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .2);
  }

  .bg-yellow {
    background-color: #ffd778!important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .2);
  }

  .bg-red {
    background-color: #ff829d!important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .2);
  }
  .bg-navy {
    background-color: #9498ee!important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .2);
  }

  .bai-z {
    width: 90%;
    height: 150%;
    background-color: rgba(255, 255, 255, .2);
    left:-50%;
    top: -50%;
    position: absolute;
    border-radius: 50%
  }

  .bai-y {
    width: 110%;
    height: 200%;
    background-color: rgba(255, 255, 255, .2);
    left:-50%;
    top: -100%;
    position: absolute;
    border-radius: 50%
  }

  @-webkit-keyframes animate-positive {
    0% {
      width: 0;
    }
  }

  @keyframes animate-positive {
    0% {
      width: 0;
    }
  }

  .text-align{text-align: right;}
</style>
